package com.ycshihuo.shihuo.util;

/**
 * 公共常量类
 * Created by tangyikai on 16/4/19.
 */
public final class PublicConstants {

    public static final int PAGE_SIZE = 20;

    /**
     * Redis常量
     */
    public final static class RedisData {

    }

    /**
     * 性别类型
     */
    public final static class Gender {
        public static String MAN = "男";
        public static String WOMAN = "女";
        public static String UNKNOWN = "未知";
    }

    /**
     * 用户状态
     */
    public enum UserStatus {
        NORMAL,         //正常
        INVALIDATION,   //失效
        PROHIBITION     //禁言
    }

    /**
     * 有效和无效
     */
    public enum ValidType {
        INVALIDATION,   //失效
        VALIDATION,      //有效
        UNTREATED        //未处理
    }

    /**
     * 用户登录类型
     */
    public final static class UserLoginType {
        public static String QQ = "qq";
        public static String WEIBO = "weibo";
        public static String WEIXIN = "weixin";
        public static String PHONE = "phone";
    }

    /**
     * 终端类型
     */
    public final static class DeviceType {
        public static String ANDROID = "android";
        public static String IOS = "ios";
        public static String WEB = "web";
    }

    /**
     * 状态码定义
     */
    public final static class StatusCode {
        //正常响应
        public static int SUCCESS = 0;
        //通用错误
        public static int ERROR = 999;

    }

    public enum RefresType {
        UP,         //上滑
        DOWN  //下拉
    }

    /**
     * 是否选中
     */
    public enum Selected {
        SELECTED,//选中
        UNSELECTED//未选中
    }
}
